<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .container {
            max-width: 1200px;
            margin: auto;
        }

        header h1 {
            text-align: center;
            padding: 10px;
        }

        .banner {
            text-align: center;
        }

        .banner img {
            width: 95%;
        }

        .txt p {
            border-top: 1px solid #000;
            border-bottom: 1px solid #000;
            margin: 10px 0;
            padding: 5px 0;
        }

        .list ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }

        .list ul li {
            width: 32%;
            background-color: #eee;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .list ul li img {
            width: 100%;
        }

        .list ul li>div {
            position: relative;
        }

        .hide {
            position: absolute;
            background-color: rgba(0, 0, 0, 0.5);
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }



        /* 手机区间 */
        @media screen and (min-width:320px) and (max-width:767px) {
            header label {
                width: 30px;
                height: 30px;
                background-color: #f00;
                right: 10px;
                top: 10px;
                position: fixed;
                z-index: 1;
            }

            header ul {
                position: fixed;
                top: 0;
                width: 100%;
                background-color: rgba(0, 0, 0, .5);
                text-align: center;
                color: #fff;
                line-height: 30px;

                height: 0;
                overflow: hidden;
                transition: .3s;
            }

            header input:checked~ul {
                height: 210px;
            }

            .list ul li {
                width: 48%;
            }

        }

        /* 大于手机 */
        @media screen and (min-width:768px) {
            header ul {
                display: flex;
                justify-content: center;
            }

            header ul li {
                margin: 0 2%;
            }


        }
    </style>
</head>

<body>
    <header>
        <div class="container">
            <h1>logo</h1>
            <input type="checkbox" id="c" hidden>
            <label for="c"></label>
            <ul>
                <li>home</li>
                <li>home</li>
                <li>home</li>
                <li>home</li>
                <li>home</li>
                <li>home</li>
                <li>home</li>

            </ul>
        </div>
    </header>

    <div class="banner">
        <div class="container">
            <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
        </div>
    </div>

    <div class="txt">
        <div class="container">
            <p>啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</p>
        </div>
    </div>


    <div class="list">
        <div class="container">
            <ul>
                <li>
                    <div>
                        <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
                        <div class="hide"></div>
                    </div>
                    <p>11111111</p>
                </li>
                <li>
                    <div>
                        <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
                    </div>
                    <p>11111111</p>
                </li>
                <li>
                    <div>
                        <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
                    </div>
                    <p>11111111</p>
                </li>
                <li>
                    <div>
                        <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
                    </div>
                    <p>11111111</p>
                </li>
                <li>
                    <div>
                        <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
                    </div>
                    <p>11111111</p>
                </li>

                <li>
                    <div>
                        <img src="http://infinistudio.cn/Public//Upload/2019-11-05/5dc054a7011bb.jpg" alt="">
                    </div>
                    <p>11111111</p>
                </li>
            </ul>
        </div>
    </div>


</body>

</html>